package com.schoolcloud.share.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolcloud.share.entity.VideoCategories;
import com.schoolcloud.share.service.VideoCategoriesService;
import com.schoolcloud.share.mapper.VideoCategoriesMapper;
import org.springframework.stereotype.Service;

/**
* @author hongmizfb
* @description 针对表【video_categories(视频分类多对多关联)】的数据库操作Service实现
* @createDate 2025-05-16 18:35:15
*/
@Service
public class VideoCategoriesServiceImpl extends ServiceImpl<VideoCategoriesMapper, VideoCategories>
    implements VideoCategoriesService{

    @Override
    public VideoCategories getByVideoId(Integer id) {
        return lambdaQuery().eq(VideoCategories::getVideoId, id).one();
    }
}




